﻿using DDD.Infrastructure.RepositoryFramework;
using DDD.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DDD.Application
{
    public class PersonService : IPersonService
    {
        #region Fields

        private readonly IRepository<Person> repository;

        #endregion


        #region Constructors

        public PersonService(IRepository<Person> repository)
        {
            this.repository = repository;
        }
        #endregion
        public IQueryable<Person> GetAll()
        {
            return this.repository.Table;
        }

    }
}
